import 'dart:collection';

import 'package:flutter/material.dart';

class BaseFutureController extends ChangeNotifier {
  Map<String, dynamic> _params = new HashMap();

  Map<String, dynamic> get params => _params;

  BaseFutureController({Map<String, dynamic> initParams = const {}}) {
    this._params.addAll(initParams);
  }

  refresh({Map<String, dynamic> params}) {
    if (params != null) {
      this._params.addAll(params);
    }
    notifyListeners();
  }

  reSetParams() {
    this._params.clear();
  }
}
